tools:misc:xenpm: set max freq to all cpu with default cpuid
authorLuwei Kang <luwei.kang@intel.com>
Thu, 13 Apr 2017 10:44:28 +0000 (18:44 +0800)
committerWei Liu <wei.liu2@citrix.com>
Thu, 13 Apr 2017 15:27:46 +0000 (16:27 +0100)
commitc1f9b9d77ceecb9fb782e4ab98ec3b94cf22dab8
treefb0d3055d25214ecd39c1679667cb70315b01cd9
parent341569f1d18df00bda6625a77c2b106cee382562
tools:misc:xenpm: set max freq to all cpu with default cpuid

User can set max freq to specific cpu by
"xenpm set-scaling-maxfreq [cpuid] <HZ>"
or set max freq to all cpu with default cpuid by
"xenpm set-scaling-maxfreq <HZ>".

Set max freq with default cpuid will cause
segmentation fault after commit id d4906b5d05.
This patch will fix this issue and add ability
to set max freq with default cpuid.

Signed-off-by: Luwei Kang <luwei.kang@intel.com>
Compile-tested-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
tools/misc/xenpm.c